/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.caresms.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Category_Master}.
 * </p>
 *
 * @author    cc
 * @see       Category_Master
 * @generated
 */
public class Category_MasterWrapper implements Category_Master,
	ModelWrapper<Category_Master> {
	public Category_MasterWrapper(Category_Master category_Master) {
		_category_Master = category_Master;
	}

	public Class<?> getModelClass() {
		return Category_Master.class;
	}

	public String getModelClassName() {
		return Category_Master.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("CatId", getCatId());
		attributes.put("countryId", getCountryId());
		attributes.put("CatName", getCatName());
		attributes.put("isActive", getIsActive());
		attributes.put("countsms", getCountsms());
		attributes.put("field1", getField1());
		attributes.put("field2", getField2());
		attributes.put("field3", getField3());
		attributes.put("field4", getField4());
		attributes.put("field5", getField5());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long CatId = (Long)attributes.get("CatId");

		if (CatId != null) {
			setCatId(CatId);
		}

		Long countryId = (Long)attributes.get("countryId");

		if (countryId != null) {
			setCountryId(countryId);
		}

		String CatName = (String)attributes.get("CatName");

		if (CatName != null) {
			setCatName(CatName);
		}

		Boolean isActive = (Boolean)attributes.get("isActive");

		if (isActive != null) {
			setIsActive(isActive);
		}

		Integer countsms = (Integer)attributes.get("countsms");

		if (countsms != null) {
			setCountsms(countsms);
		}

		String field1 = (String)attributes.get("field1");

		if (field1 != null) {
			setField1(field1);
		}

		Boolean field2 = (Boolean)attributes.get("field2");

		if (field2 != null) {
			setField2(field2);
		}

		Integer field3 = (Integer)attributes.get("field3");

		if (field3 != null) {
			setField3(field3);
		}

		Date field4 = (Date)attributes.get("field4");

		if (field4 != null) {
			setField4(field4);
		}

		String field5 = (String)attributes.get("field5");

		if (field5 != null) {
			setField5(field5);
		}
	}

	/**
	* Returns the primary key of this category_ master.
	*
	* @return the primary key of this category_ master
	*/
	public long getPrimaryKey() {
		return _category_Master.getPrimaryKey();
	}

	/**
	* Sets the primary key of this category_ master.
	*
	* @param primaryKey the primary key of this category_ master
	*/
	public void setPrimaryKey(long primaryKey) {
		_category_Master.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the cat ID of this category_ master.
	*
	* @return the cat ID of this category_ master
	*/
	public long getCatId() {
		return _category_Master.getCatId();
	}

	/**
	* Sets the cat ID of this category_ master.
	*
	* @param CatId the cat ID of this category_ master
	*/
	public void setCatId(long CatId) {
		_category_Master.setCatId(CatId);
	}

	/**
	* Returns the country ID of this category_ master.
	*
	* @return the country ID of this category_ master
	*/
	public long getCountryId() {
		return _category_Master.getCountryId();
	}

	/**
	* Sets the country ID of this category_ master.
	*
	* @param countryId the country ID of this category_ master
	*/
	public void setCountryId(long countryId) {
		_category_Master.setCountryId(countryId);
	}

	/**
	* Returns the cat name of this category_ master.
	*
	* @return the cat name of this category_ master
	*/
	public java.lang.String getCatName() {
		return _category_Master.getCatName();
	}

	/**
	* Sets the cat name of this category_ master.
	*
	* @param CatName the cat name of this category_ master
	*/
	public void setCatName(java.lang.String CatName) {
		_category_Master.setCatName(CatName);
	}

	/**
	* Returns the is active of this category_ master.
	*
	* @return the is active of this category_ master
	*/
	public boolean getIsActive() {
		return _category_Master.getIsActive();
	}

	/**
	* Returns <code>true</code> if this category_ master is is active.
	*
	* @return <code>true</code> if this category_ master is is active; <code>false</code> otherwise
	*/
	public boolean isIsActive() {
		return _category_Master.isIsActive();
	}

	/**
	* Sets whether this category_ master is is active.
	*
	* @param isActive the is active of this category_ master
	*/
	public void setIsActive(boolean isActive) {
		_category_Master.setIsActive(isActive);
	}

	/**
	* Returns the countsms of this category_ master.
	*
	* @return the countsms of this category_ master
	*/
	public int getCountsms() {
		return _category_Master.getCountsms();
	}

	/**
	* Sets the countsms of this category_ master.
	*
	* @param countsms the countsms of this category_ master
	*/
	public void setCountsms(int countsms) {
		_category_Master.setCountsms(countsms);
	}

	/**
	* Returns the field1 of this category_ master.
	*
	* @return the field1 of this category_ master
	*/
	public java.lang.String getField1() {
		return _category_Master.getField1();
	}

	/**
	* Sets the field1 of this category_ master.
	*
	* @param field1 the field1 of this category_ master
	*/
	public void setField1(java.lang.String field1) {
		_category_Master.setField1(field1);
	}

	/**
	* Returns the field2 of this category_ master.
	*
	* @return the field2 of this category_ master
	*/
	public boolean getField2() {
		return _category_Master.getField2();
	}

	/**
	* Returns <code>true</code> if this category_ master is field2.
	*
	* @return <code>true</code> if this category_ master is field2; <code>false</code> otherwise
	*/
	public boolean isField2() {
		return _category_Master.isField2();
	}

	/**
	* Sets whether this category_ master is field2.
	*
	* @param field2 the field2 of this category_ master
	*/
	public void setField2(boolean field2) {
		_category_Master.setField2(field2);
	}

	/**
	* Returns the field3 of this category_ master.
	*
	* @return the field3 of this category_ master
	*/
	public int getField3() {
		return _category_Master.getField3();
	}

	/**
	* Sets the field3 of this category_ master.
	*
	* @param field3 the field3 of this category_ master
	*/
	public void setField3(int field3) {
		_category_Master.setField3(field3);
	}

	/**
	* Returns the field4 of this category_ master.
	*
	* @return the field4 of this category_ master
	*/
	public java.util.Date getField4() {
		return _category_Master.getField4();
	}

	/**
	* Sets the field4 of this category_ master.
	*
	* @param field4 the field4 of this category_ master
	*/
	public void setField4(java.util.Date field4) {
		_category_Master.setField4(field4);
	}

	/**
	* Returns the field5 of this category_ master.
	*
	* @return the field5 of this category_ master
	*/
	public java.lang.String getField5() {
		return _category_Master.getField5();
	}

	/**
	* Sets the field5 of this category_ master.
	*
	* @param field5 the field5 of this category_ master
	*/
	public void setField5(java.lang.String field5) {
		_category_Master.setField5(field5);
	}

	public boolean isNew() {
		return _category_Master.isNew();
	}

	public void setNew(boolean n) {
		_category_Master.setNew(n);
	}

	public boolean isCachedModel() {
		return _category_Master.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_category_Master.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _category_Master.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _category_Master.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_category_Master.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _category_Master.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_category_Master.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new Category_MasterWrapper((Category_Master)_category_Master.clone());
	}

	public int compareTo(com.caresms.model.Category_Master category_Master) {
		return _category_Master.compareTo(category_Master);
	}

	@Override
	public int hashCode() {
		return _category_Master.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.caresms.model.Category_Master> toCacheModel() {
		return _category_Master.toCacheModel();
	}

	public com.caresms.model.Category_Master toEscapedModel() {
		return new Category_MasterWrapper(_category_Master.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _category_Master.toString();
	}

	public java.lang.String toXmlString() {
		return _category_Master.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_category_Master.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public Category_Master getWrappedCategory_Master() {
		return _category_Master;
	}

	public Category_Master getWrappedModel() {
		return _category_Master;
	}

	public void resetOriginalValues() {
		_category_Master.resetOriginalValues();
	}

	private Category_Master _category_Master;
}